<?php
namespace app\api\controller;

use lib\Db;
use lib\Response;

class Book extends Common{

    /**
     * 用户日记本列表
     * @return array
     */
    function userBooks(){
        $list = Db::name('book')->limit($this->post['page'] * $this->post['pageRow'], $this->post['pageRow'])
            ->where(['uid'=>$this->uid])->order('id')->select();
        return Response::success('ok', $list);
    }

}